package javaapplication;

public class XPlancheCalculEnCours extends XPlanche {
    
    public XPlancheCalculEnCours () {
        super();
    }
    
    protected void initComponents () {
        
        XItemPlancheTexte jPanel1 = new XItemPlancheTexte(
                "Calcul en cours"
                );
        XItemPlancheTexte jPanel2 = new XItemPlancheTexte(
                "Veuillez patienter..."
                );
        XItemPlancheBouton jPanel3 = new XItemPlancheBoutonMenu(
                "Annuler", 
                XPlancheSaisieItineraireVilles.getCmdInstance()
                );
        
        addItemPlanche(jPanel1);
        addItemPlanche(jPanel2);
        addSeparator();
        addItemPlanche(jPanel3);
        
    }
    
    
    
    
    
    private static XPlancheCalculEnCours instance;
    private static CmdInstanciation cmdInstance;
    
    public static XPlancheCalculEnCours getInstance () {
        if (instance == null) {
            return instance = new XPlancheCalculEnCours();
        } else {
            return instance;
        }
    }
    
    public static XPlancheCalculEnCours.CmdInstanciation getCmdInstance () {
        System.out.println("public static CmdInstanciation getCmdInstance ()");
        if (cmdInstance == null) {
            return cmdInstance = new XPlancheCalculEnCours.CmdInstanciation();
        } else {
            return cmdInstance;
        }
    }
    
    private static class CmdInstanciation extends XPlanche.CmdInstanciation { 
        public XPlanche getInstance () {
            return XPlancheCalculEnCours.getInstance();
        }
    }
    
}
